module Firearms
{
	imports
	{
		Base
	}

	/************************Guns************************/
	item DoubleBarrelShotgunSawn
    {
        ImpactSound	=	null,
        MaxRange	=	4,
        RangeFalloff	=	TRUE,
        WeaponSprite	=	Firearms.DoubleBarrelShotgunSawn,
        SoundVolume	=	200,
        MinAngle	=	0.9,
        Type	=	Weapon,
        KnockBackOnNoDeath	=	TRUE,
        Ranged	=	TRUE,
        ProjectileCount	=	5,
        ConditionLowerChanceOneIn	=	60,
        Weight	=	4,
        SplatNumber	=	7,
        PushBackMod	=	1.2,
        SubCategory	=	Firearm,
        AimingMod	=	2,
        ConditionMax	=	10,
        ShareDamage	=	FALSE,
        MaxHitCount	=	4,
        IsAimedHandWeapon	=	TRUE,
        IsAimedFirearm	=	TRUE,
        DoorDamage	=	40,
        UseEndurance	=	FALSE,
        DisplayName	=	Sawn-Off Double Barreled Shotgun,
        MinRange	=	0.67,
        SwingTime	=	2,
        AngleFalloff	=	TRUE,
        MultipleHitConditionAffected	=	FALSE,
        SwingSound	=	FirearmShotgun,
        SoundRadius	=	200,
        MinDamage	=	2,
        MaxDamage	=	2.7,
        KnockdownMod	=	8,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	ShotgunDoublebarrelSawn,
        RunAnim	=	Run_Weapon2,
        CriticalChance = 80,
        CritDmgMultiplier = 2,
        AimingPerkCritModifier = 4,
        HitChance = 80,
        AimingPerkHitChanceModifier = 5,
        RecoilDelay = 50,
        SoundGain = 2,
        ReloadTime = 25,
        AimingTime = 20,
        RequiresEquippedBothHands = TRUE,
        BreakSound  =   BreakMetalItem,
        ShellFallSound = ShotgunShellHitGround,
        MetalValue = 45,
        TwoHandWeapon = TRUE,
        AmmoBox = ShotgunShellsBox,
        MaxAmmo = 2,
        InsertAmmoSound = StormyShotgunInsertRound,
        EjectAmmoSound = Stormy9mmClipEject,
        RackSound = stormyShotgunPump,
        AmmoType = Base.ShotgunShells,
        WeaponReloadType = doublebarrelshotgun,
        JamGunChance = 0,
        AttachmentType = Rifle,
        InsertAllBulletsReload = TRUE,
        RackAfterShoot = FALSE,
        haveChamber = FALSE,
    }

    item ColtPeacemaker
    {
        ImpactSound	=	null,
        MaxRange	=	11,
        WeaponSprite	=	Firearms.ColtPeacemaker,
        SoundVolume	=	250,
        MinAngle	=	0.95,
        Type	=	Weapon,
        MinimumSwingTime	=	0.5,
        ToHitModifier	=	1.5,
        NPCSoundBoost	=	1.5,
        KnockBackOnNoDeath	=	TRUE,
        Ranged	=	TRUE,
        SwingAmountBeforeImpact	=	0,
        ProjectileCount	=	1,
        ConditionLowerChanceOneIn	=	60,
        Weight	=	2,
        SplatNumber	=	3,
        PushBackMod	=	0.3,
        SubCategory	=	Firearm,
        ConditionMax	=	10,
        ShareDamage	=	FALSE,
        MaxHitCount	=	1,
        IsAimedFirearm	=	TRUE,
        DoorDamage	=	5,
        UseEndurance	=	FALSE,
        SwingAnim	=	Handgun,
        DisplayName	=	Colt Peacemaker,
        MinRange	=	0.61,
        SwingTime	=	0.5,
        MultipleHitConditionAffected	=	FALSE,
        SoundRadius	=	120,
        MinDamage	=	1.2,
        MaxDamage	=	1.9,
        SplatSize	=	3,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	ColtPeacemaker,
        RunAnim	=	Run_Weapon2,
        CriticalChance	=	20,
        CritDmgMultiplier = 4,
        AimingPerkCritModifier = 10,
        AimingPerkRangeModifier = 1.5,
        HitChance = 20,
        AimingPerkHitChanceModifier = 12,
        AimingPerkMinAngleModifier = 0.05,
        RecoilDelay = 30,
        SoundGain = 1.5,
        ClipSize = 15,
        ReloadTime = 30,
        AimingTime = 40,
        BreakSound  =   BreakMetalItem,
        MetalValue = 30,
        AmmoBox = Bullets44Box,
        MaxAmmo = 6,
        SwingSound	=	FirearmSW642Shot,
        InsertAmmoSound = stormyRevolverInsertRound,
        EjectAmmoSound = stormyRevolverSpin,
        RackSound = stormyRevolverClick,
        AmmoType = Base.Bullets44,
        WeaponReloadType = revolver,
        JamGunChance = 0,
        haveChamber = FALSE,
        AttachmentType = Holster,
    }

		item Glock17
		{
					ImpactSound	=	null,
					MaxRange	=	8,
					WeaponSprite	=	Firearms.Glock17,
					SoundVolume	=	50,
					MinAngle	=	0.95,
					Type	=	Weapon,
					MinimumSwingTime	=	0.5,
					ToHitModifier	=	1.5,
					NPCSoundBoost	=	1.5,
					KnockBackOnNoDeath	=	TRUE,
					Ranged	=	TRUE,
					SwingAmountBeforeImpact	=	0,
					ProjectileCount	=	1,
					ConditionLowerChanceOneIn	=	60,
					Weight	=	1.5,
					SplatNumber	=	3,
					PushBackMod	=	0.3,
					SubCategory	=	Firearm,
					ConditionMax	=	10,
					ShareDamage	=	FALSE,
					MaxHitCount	=	1,
					IsAimedFirearm	=	TRUE,
					DoorDamage	=	5,
					UseEndurance	=	FALSE,
					SwingAnim	=	Handgun,
					DisplayName	=	Glock17,
					MinRange	=	0.61,
					SwingTime	=	0.5,
					MultipleHitConditionAffected	=	FALSE,
					SwingSound	=	Firearm1911Shot,
					SoundRadius	=	50,
					MinDamage	=	1,
					MaxDamage	=	1.4,
					SplatSize	=	3,
					KnockdownMod	=	2,
					SplatBloodOnNoDeath	=	TRUE,
					Icon	=	Glock17,
					RunAnim	=	Run_Weapon2,
					CriticalChance	=	20,
					CritDmgMultiplier = 4,
					AimingPerkCritModifier = 10,
					AimingPerkRangeModifier = 1.5,
					HitChance = 45,
					AimingPerkHitChanceModifier = 10,
					AimingPerkMinAngleModifier = 0.05,
					RecoilDelay = 20,
					SoundGain = 1.2,
					ClipSize = 15,
					ReloadTime = 30,
					AimingTime = 20,
					BreakSound  =   BreakMetalItem,
					MetalValue = 30,
					AmmoBox = Bullets9mmBox,
					MaxAmmo = 17,
					InsertAmmoSound = Stormy9mmClipLoad,
					EjectAmmoSound = Stormy9mmClipEject,
					RackSound = Stormy9mmRack,
					MagazineType = Firearms.Glock17Mag,
			 		ModelWeaponPart = 9mmSilencer Glock17_Silencer,
			 		ModelWeaponPart = ImprovisedSilencer FlashlightSilencer_Pistol,
					AmmoType = Base.Bullets9mm,
					WeaponReloadType = handgun,
					JamGunChance = 1,
					AttachmentType = Holster,
		}

		item HuntingRifle_Sawn
    {
		ImpactSound	=	null,
		MaxRange	=	2,
		WeaponSprite	=	Firearms.Model788_Sawn,
		SoundVolume	=	200,
		MinAngle	=	0.2,
		Type	=	Weapon,
		MinimumSwingTime	=	0.5,
		ToHitModifier	=	1.5,
		NPCSoundBoost	=	1.5,
		KnockBackOnNoDeath	=	TRUE,
		Ranged	=	TRUE,
		SwingAmountBeforeImpact	=	0,
		ProjectileCount	=	1,
		ConditionLowerChanceOneIn	=	60,
		Weight	=	3,
		SplatNumber	=	3,
		PushBackMod	=	0.3,
		MaxDamage	=	3,
		SubCategory	=	Firearm,
		ConditionMax	=	10,
		ShareDamage	=	FALSE,
		MaxHitCount	=	1,
		IsAimedFirearm	=	TRUE,
		DoorDamage	=	20,
		UseEndurance	=	FALSE,
		SwingAnim	=	Rifle,
		DisplayName	=	MSR788 Rifle,
		MinRange	=	0.61,
		SwingTime	=	0.5,
		MultipleHitConditionAffected	=	FALSE,
		SwingSound	=	FirearmHunterShot,
		SoundRadius	=	250,
		MinDamage	=	1.75,
		SplatSize	=	3,
		KnockdownMod	=	2,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	Model788_Sawn,
		RunAnim	=	Run_Weapon2,
		IdleAnim	=	Idle_Weapon2,
		CriticalChance = 20,
		CritDmgMultiplier = 10,
		AimingPerkCritModifier = 10,
		AimingPerkRangeModifier = 0.5,
		HitChance = 45,
		AimingPerkHitChanceModifier = 10,
		AimingPerkMinAngleModifier = 0.05,
		RecoilDelay = 130,
		PiercingBullets = TRUE,
		SoundGain = 3,
		ReloadTime = 15,
		AimingTime = 25,
		RequiresEquippedBothHands = TRUE,
		BreakSound  =   BreakMetalItem,
		MetalValue = 45,
		TwoHandWeapon = TRUE,
		AmmoBox = 308Box,
		MaxAmmo = 3,
		InsertAmmoSound = BulletInRifle,
		EjectAmmoSound = Stormy9mmClipEject,
		RackSound = BulletOutVarmint,
		AmmoType = Base.308Bullets,
		WeaponReloadType = boltaction,
		RackAfterShoot = TRUE,
		/*MagazineType = Base.308Clip,*/
		JamGunChance = 7,
		AttachmentType = Rifle,
    }

		item M24Rifle
	    {
	       ImpactSound	=	null,
	       MaxRange	=	14,
	       WeaponSprite	=	Firearms.Model700,
	       SoundVolume	=	200,
	       MinAngle	=	0.95,
	       Type	=	Weapon,
	       MinimumSwingTime	=	0.5,
	       ToHitModifier	=	1.5,
	       NPCSoundBoost	=	1.5,
	       KnockBackOnNoDeath	=	TRUE,
	       Ranged	=	TRUE,
	       SwingAmountBeforeImpact	=	0,
	       ProjectileCount	=	1,
	       ConditionLowerChanceOneIn	=	60,
	       Weight	=	3.5,
	       SplatNumber	=	3,
	       PushBackMod	=	0.3,
	       SubCategory	=	Firearm,
	       ConditionMax	=	10,
	       ShareDamage	=	FALSE,
	       MaxHitCount	=	1,
	       IsAimedFirearm	=	TRUE,
	       DoorDamage	=	20,
	       UseEndurance	=	FALSE,
	       SwingAnim	=	Rifle,
	       DisplayName	=	M24,
	       MinRange	=	0.61,
	       SwingTime	=	0.5,
	       MultipleHitConditionAffected	=	FALSE,
	       SwingSound	=	FirearmRifleShot,
	       SoundRadius	=	250,
	       MinDamage	=	0.6,
	       MaxDamage	=	1.3,
	       SplatSize	=	3,
	       KnockdownMod	=	2,
	       SplatBloodOnNoDeath	=	TRUE,
	       Icon	=	Model700,
	       RunAnim	=	Run_Weapon2,
	       IdleAnim	=	Idle_Weapon2,
	       CriticalChance = 25,
	       CritDmgMultiplier = 8,
	       AimingPerkCritModifier = 12,
	       HitChance = 27,
	       AimingPerkHitChanceModifier = 17,
	       AimingPerkMinAngleModifier = 0.01,
	       AimingPerkRangeModifier = 2,
	       RecoilDelay = 80,
	       PiercingBullets = TRUE,
	       SoundGain = 1,
	       ReloadTime = 25,
	       AimingTime = 30,
	       RequiresEquippedBothHands = TRUE,
	       BreakSound  =   BreakMetalItem,
	       MetalValue = 45,
	       TwoHandWeapon = TRUE,
	       AmmoBox = 308Box,
	       MaxAmmo = 5,
	       InsertAmmoSound = BulletInRifle,
	       EjectAmmoSound = Stormy9mmClipEject,
	       RackSound = BulletOutVarmint,
	       AmmoType = Base.308Bullets,
	       WeaponReloadType = boltaction,
	/*       ModelWeaponPart = FiberglassStock HuntingKnife none bayonet,*/
	       ModelWeaponPart = Base.x2Scope Firearms.Rifle_Scope,
	       ModelWeaponPart = Base.x4Scope Firearms.Rifle_Scope,
	       ModelWeaponPart = Base.x8Scope Firearms.Rifle_Scope,
				 ModelWeaponPart = Base.Sling Firearms.M24Rifle_Sling,
				 ModelWeaponPart = Base.AmmoStraps Firearms.Rifle_Ammostrap,
				 ModelWeaponPart = Base.RecoilPad Firearms.Rifle_Pad,
				 ModelWeaponPart = ExtendedRecoilPad Firearms.Rifle_ExtendedPad,
				 ModelWeaponPart = 308Silencer Firearms.Rifle_Silencer,
				 ModelWeaponPart = Rifle_Bipod Firearms.Rifle_Bipod,
	       RackAfterShoot = TRUE,
	       /*MagazineType = Base.223Clip,*/
	       JamGunChance = 5,
	       AttachmentType = Rifle,
	    }

	/************************Magazines************************/

	item Glock17Mag
	{
		CanStack	=	FALSE,
		Weight	=	0.2,
		Type	=	Normal,
		DisplayName	=	Glock 17 Magazine,
		Icon	=	Glock_Mag,
		MaxAmmo = 17,
		AmmoType = Base.Bullets9mm,
		StaticModel = GunMagazine,
	}

}
